﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeBehind="SentManage.aspx.cs" Inherits="XinBang.Web.Admin.SentManage" Title="无标题页" %>
<asp:Content ID="Content1" ContentPlaceHolderID="headerplace" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainplace" runat="server">
<h2><asp:Literal ID="ttitle" runat="server" Text="发货管理"></asp:Literal></h2>
<asp:MultiView ID="MultiView1" runat="server">
    <asp:View ID="View1" runat="server">
        <ul>
            <li><a href="SentManage.aspx?action=manage">查看所有发货方式</a></li>
        </ul>
    </asp:View>
    <asp:View ID="View2" runat="server">
        <asp:ObjectDataSource ID="sendObjectDataSource" runat="server" OnDeleted="DeletedSend" OnDeleting="DeletingSend" OnUpdated="UpdatedSend" OnUpdating="UpdatingSend" SelectMethod="GetAllSends" TypeName="XinBang.BLL.SendBL" DataObjectTypeName="XinBang.Entity.Send" DeleteMethod="DeleteSend" InsertMethod="InsertSend" UpdateMethod="UpdateSend"></asp:ObjectDataSource>
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" DataKeyNames="Senid"
            CssClass="show" PageSize="20" DataSourceID="sendObjectDataSource">
            <AlternatingRowStyle CssClass="alt" />
            <PagerStyle CssClass="pager" />
            <PagerSettings FirstPageText="首页" LastPageText="末页" Mode="NextPreviousFirstLast"
                    NextPageText="下一页" PreviousPageText="上一页" />
            <EmptyDataTemplate>
                没有查询到任何发货方式。
            </EmptyDataTemplate>
            <Columns>
                <asp:BoundField DataField="Senid" HeaderText="编号" SortExpression="Senid">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="Describe" HeaderText="方式名称" SortExpression="Describe" />
                <asp:BoundField DataField="Cost" HeaderText="运送费用" SortExpression="Cost" />
                <asp:CommandField HeaderText="编辑" ShowEditButton="True">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:CommandField>
                <asp:CommandField HeaderText="删除" ShowDeleteButton="True">
                    <ItemStyle HorizontalAlign="Center" />
                </asp:CommandField>
            </Columns>
        </asp:GridView>
        <div class="show">
            <asp:LinkButton ID="linkButtonAddNew" runat="server" OnClick="linkButtonAddNew_Click">添加新的运送方式</asp:LinkButton>
        </div>
        <asp:Panel ID="panelSend" runat="server" CssClass="show" Visible="false">
            运送方案名称:<asp:TextBox ID="textBoxDescribe" runat="server"></asp:TextBox><br />
            运送费用:<asp:TextBox ID="textBoxCost" runat="server"></asp:TextBox><br />
            <asp:LinkButton ID="linkButtonInsert" runat="server" OnClick="linkButtonInsert_Click">添加</asp:LinkButton>
        </asp:Panel>
    </asp:View>
</asp:MultiView>
</asp:Content>
